import { IS_SHOW, IS_MULTI,IS_SEX } from '@/utils/util'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  columnBtn: false,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn: false,
  refreshBtn: false,
  column: [
	  {
      label: '名称',
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入名称',
        trigger: 'blur'
      }]
    },
    // {
    //   label: '商铺名称',
    //   prop: 'shopName',
    //   formsolt: true,
    //   solt: true,
    //   overHidden: true,
    //   span: 12,
    //   rules: [{
    //     required: true,
    //     message: '请选择商铺',
    //     trigger: 'blur'
    //   }]
    // },
	  {
      label: '是否显示',
      prop: 'isShow',
      type: 'radio',
      dicData: IS_SHOW,
      valueDefault: IS_SHOW[1].value,
      key: IS_SHOW[0],
      rules: [{
        required: true,
        message: '请选择类型',
        trigger: 'blur'
      }]
    },
    {
      label: '选择性别',
      prop: 'sex',
      type: 'radio',
      dicData: IS_SEX,
      valueDefault: IS_SEX[1].value,
      key: IS_SEX[0],
      rules: [{
        required: true,
        message: '请选择性别',
        trigger: 'blur'
      }]
    },
    {
      label: '是否多选',
      prop: 'isMulti',
      type: 'radio',
      dicData: IS_MULTI,
      valueDefault: IS_MULTI[0].value,
      key: IS_MULTI[0],
      rules: [{
        required: true,
        message: '请选择是否多选',
        trigger: 'blur'
      }]
    },
    {
      label: '排序',
      prop: 'sort',
      valueDefault: 100,
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    }
  ]
}
